import type { FormWidgetItem, GroupFormWidget } from '@/types';

export const baseFormWidget: FormWidgetItem[] = [
  {
    name: '输入框',
    comp: 'el-input',
    props: {
      type: 'text',
    },
  },
  {
    name: '多行输入框',
    comp: 'el-input',
    props: {
      type: 'textarea',
    },
  },
];
export const layoutWidget: FormWidgetItem[] = [
  {
    name: '表格布局',
    comp: 'el-table',
  },
  {
    name: '栅格布局',
    comp: 'el-row',
  },
];

export const groupFormWidgets: GroupFormWidget[] = [
  {
    groupName: '基本表单',
    groupItems: baseFormWidget,
  },
  {
    groupName: '布局容器',
    groupItems: layoutWidget,
  },
];
